const state = {
  List: [],
  fields: [], // fields
};
const actions = {
  GetFields({ commit }, data) {
    let fields = [
      {
        title: '序号',
        dataIndex: 'id',
        align: 'center',
        width: 100
      },
      {
        title: '姓名',
        dataIndex: 'name',
        align: 'center',
      },
      {
        title: '手机号',
        dataIndex: 'mobile',
        align: 'center',
      },
	  {
	    title: '创建时间',
	    dataIndex: 'create_time',
	    align: 'center',
	  },
      {
        title: '小区',
        dataIndex: 'estate',
        align: 'center',
      },
      {
        title: '户型',
        dataIndex: 'house_type',
        align: 'center',
      },
      {
        title: '卖场ID',
        dataIndex: 'market_id',
        align: 'center',
      },
	  {
	    title: '卖场名称',
	    dataIndex: 'market_name',
	    align: 'center',
	  }
    ];

    commit('setfields', fields);

  },
};

const mutations = {
  setfields(state, lists) {
    // console.log(state)
    state.fields = lists;
  },
};

export default {
  namespaced: true,
  state,
  actions,
  mutations
};